package cn.lzx.orderBlockHander;

import cn.lzx.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;

import org.springframework.web.bind.annotation.PathVariable;

public class OrderBlockHandler {

    public static User getUserHandler(@PathVariable("id") Long id, BlockException e){
       e.printStackTrace();
        return new User(-1L,"限流了", "请不要访问了");
    }
}
